﻿@model HotelRegistrationSystem.Models.HotelSearchModel

@using (Html.BeginForm("Index", "Hotel", FormMethod.Post))
{
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    //Save first level filtration state
    @Html.HiddenFor(m => m.Name)
    @Html.HiddenFor(m => m.RoomsCountMin)
    @Html.HiddenFor(m => m.BedsCountMin)
    @Html.HiddenFor(m => m.StarsMax)
    @Html.HiddenFor(m => m.StarsMin)
    @Html.HiddenFor(m => m.HotelTypeId)
    @Html.HiddenFor(m => m.ReservationTypeId) 
    @Html.HiddenFor(m => m.Country)
    @Html.HiddenFor(m => m.Region)
    @Html.HiddenFor(m => m.City)
    @Html.HiddenFor(m => m.Street)

   <div id="sideSearch" style="width: 300px; position: fixed; top: 220px; left: 30px">
        <h5 style="margin-top: -30px; margin-left: -10px;">Filter Options</h5>
        <div class="six columns" style="width: 200px">
            <div style="margin-left: -30px">
                <div class="row" style="margin-top: 5px">
                    <div class="nine columns" style="font-weight:bold">
                        @Html.LabelFor(model => model.RoomTypeId)
                        @Html.DropDownList("RoomTypeId", "")
                    </div>
                </div>
                <div class="row" style="margin-top: 5px">
                    <div class="nine columns">
                        @Html.LabelFor(model => model.FacilityId)
                        @Html.DropDownList("FacilityId", "")
                    </div>
                </div>
@*                 <div class="row" style="margin-top: 5px">
                    <div class="nine columns">
                        @Html.LabelFor(model => model.HotelTypeId)
                        @Html.DropDownList("HotelType", "")
                    </div>
                </div>*@
@*                 <div class="row" style="margin-top: 5px">
                    <div class="nine columns">
                        @Html.LabelFor(model => model.ReservationTypeId)
                        @Html.DropDownList("ReservationTypeId", "")
                    </div>
                </div>*@
                <div class="row" style="margin-top: 5px">
                    <div class="nine columns">
                        @Html.LabelFor(model => model.HotelId)
                        @Html.DropDownList("HotelId", "")
                    </div>
                </div>
                <div class="row" style="margin-top: 5px">
                    <div class="nine columns">
                        @Html.LabelFor(model => model.RoomMinPrice)
                        @Html.EditorFor(model => model.RoomMinPrice)
                    </div>
                </div>
                <div class="row" style="margin-top: 5px">
                    <div class="nine columns">
                       @Html.LabelFor(model => model.RoomMaxPrice)
                       @Html.EditorFor(model => model.RoomMaxPrice)
                   </div>
               </div>           
            </div>
            <br />
        </div>
        <input type="submit" value="Filter" class="button small success" style="width: 110px; height: 30px;" />      
    </div>
}